package com.campus.common.mybatis.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;

public class LongIdLogicEntity<T extends Model<?>> extends LongIdLogicBaseEntity<T> {

	private static final long serialVersionUID = 1L;

	@TableField(value = "creator_id", fill = FieldFill.INSERT)
	private Long creatorId;
	@TableField(value = "creator_name", fill = FieldFill.INSERT)
	private String creatorName;
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	@TableField(value = "updator_id", fill = FieldFill.INSERT_UPDATE)
	private Long updatorId;
	@TableField(value = "updator_name", fill = FieldFill.INSERT_UPDATE)
	private String updatorName;
	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getUpdatorId() {
		return updatorId;
	}

	public void setUpdatorId(Long updatorId) {
		this.updatorId = updatorId;
	}

	public String getUpdatorName() {
		return updatorName;
	}

	public void setUpdatorName(String updatorName) {
		this.updatorName = updatorName;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}
}
